import { POST_TYPE } from "../actions/type";

const initialState={
    items:[]
};

export default function(state=initialState,action){
    switch(action.type){
        case POST_TYPE:
            return{
                ...state,
                item:action.payload
            };
        default:
            return state;
    }

}